<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href='{url r="user#promoter_anchorlist" p="bm_special=0"}' class="{if $data.bm_special eq 0}field{/if}">普通主播列表</a>
        <a href='{url r="user#promoter_anchorlist" p="bm_special=1"}' class="{if $data.bm_special eq 1}field{/if}" >特约主播列表</a>
    </div>
    {if $data.promoter_pid gt 0}
    <a href='{url r="user#create_anchor"}' class="btn btn-primary btn-m f-r" id="btn_upload" style="position: relative; z-index: 1;">创建主播</a>
    {/if}
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>会员昵称</span>
            <input type="text" ms-duplex="@search_data.nick_name" placeholder="">
        </div>
        <div class="search-list">
            <span>上线推广商名称</span>
            <input type="text" ms-duplex="@search_data.promoter_name" placeholder="">
        </div>
        <div class="search-list">
            <span>会员电话</span>
            <input type="text" ms-duplex="@search_data.mobile" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>会员ID</th>
                    <th>会员头像</th>
                    <th>会员昵称</th>
                    <th>会员电话</th>
                    <th>注册时间</th>
                    <th>登录状态</th>
                    <th>认证状态</th>
                    <th>上线推广商名称</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            {foreach from="$data.user_list" item="user"}
            <tr>
                <td>{$user.id}</td>
                <td><img src="{$user.head_image}" width="40" height="40"></td>
                <td>{$user.nick_name}</td>
                <td>{$user.mobile}</td>
                <td>{function name=to_date v=$user.create_time}</td>
                <td>{if $user.is_effect eq 1}开启{else}禁用{/if}</td>
                <td>
                    {if $user.is_authentication eq 2}
                    通过
                    {elseif $user.is_authentication eq 1}
                    待审核
                    {elseif $user.is_authentication eq 3}
                    未通过
                    {/if}
                </td>
                <td>{$user.promoter_name}</td>
                <td><a class="table-link" href='{url r="user#gift_detail" p="id=$user.id&nick_name=$user.nick_name"}'>数据统计</a></td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="9">
                    <span>暂无数据</span>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
